package com.baolai.service;

import com.alibaba.fastjson.JSONObject;
import com.baolai.entity.GoodsDevice;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;


@Service
public interface GoodsDeviceService extends IService<GoodsDevice> {
    JSONObject listDevice(String key, Integer current, Integer size);

    boolean addGoodsDevice(GoodsDevice goodsDevice);

    boolean deleteGoodsDevice(String goodsId, String deviceId);

    GoodsDevice getGoodsDevice(String goodsId,String deviceId);

    IPage<GoodsDevice> listGoodsDeviceByGoodsId(String goodsId, Integer current, Integer size);
}
